package com.rightsidetech.http.controller.agentApp.adverts;

import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.system.dtos.response.adverts.AppBannerResp;
import com.rightsidetech.system.service.SysAdvertsBannerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shenyu.client.springmvc.annotation.ShenyuSpringMvcClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/agentApp/banner")
@ShenyuSpringMvcClient(path = "/agentApp/banner/**")
@Api(tags = "代理商App banner相关")
public class AgentAppBannerController {

    @Resource
    private SysAdvertsBannerService sysAdvertsBannerService;

    @GetMapping("/get")
    @ApiOperation("代理商app获取banner")
    public ResponseData<List<AppBannerResp>> getList() {
        return sysAdvertsBannerService.appBanner((byte) 1);
    }
}
